<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
    <script language="javascript" type="text/javascript">
    var pagesize=10;
    var pagecount=${model.pagecount };
    var resultcount=${model.resultcount };
    var currentpage=1;
    var photos=new Array();
    <%! int i=0;%><%i=0;%><c:forEach items="${model.photo }" var="p">photos[<%=i%>]=["${p.id }", "${p.title }", "${p.description }","${p.lastviewed }","${p.uploaded }","${p.view }","${p.userName }","${p.competitionName }"];
    <%i=i+1;%></c:forEach>
    </script>
</head>
<body>

</body>
</html>